/// code : 0
/// data : [{"treatment":"","dosage":"iv.gtt","addTime":"2019-10-17 18:23:57","medicineID":"19101718235717627421103001","addUser":"MedicineSyncService","productBrand":"品牌AAA","sickness":"脊柱炎","namePy":"zsylgdt","productUnit":"支","medicineClass":0,"modifyUser":"","modifyTime":"2020-06-03 15:38:16","medicineForm":"","otcType":0,"productSpec":"8mg*10支/盒","belongSection":"妇儿科","medicineFormID":0,"formType":"mg","isDelete":0,"approveNo":"国药准字H20051051","weight":"","productFactory":"黑龙江迪龙制药有限公司","people":"","medicineName":"注射用鹿瓜多肽","barCode":"6937385300521","normalName":"注射用鹿瓜多肽","belongSickness":"","productPlace":"","otcClass":0}]
/// message : "成功"

class GetMedicineInfoEntity {
  int code;
  List<Data> data;
  String message;

  GetMedicineInfoEntity({
      this.code, 
      this.data, 
      this.message});

  GetMedicineInfoEntity.fromJson(dynamic json) {
    code = json["code"];
    if (json["data"] != null) {
      data = [];
      json["data"].forEach((v) {
        data.add(Data.fromJson(v));
      });
    }
    message = json["message"];
  }

  Map<String, dynamic> toJson() {
    var map = <String, dynamic>{};
    map["code"] = code;
    if (data != null) {
      map["data"] = data.map((v) => v.toJson()).toList();
    }
    map["message"] = message;
    return map;
  }

}

/// treatment : ""
/// dosage : "iv.gtt"
/// addTime : "2019-10-17 18:23:57"
/// medicineID : "19101718235717627421103001"
/// addUser : "MedicineSyncService"
/// productBrand : "品牌AAA"
/// sickness : "脊柱炎"
/// namePy : "zsylgdt"
/// productUnit : "支"
/// medicineClass : 0
/// modifyUser : ""
/// modifyTime : "2020-06-03 15:38:16"
/// medicineForm : ""
/// otcType : 0
/// productSpec : "8mg*10支/盒"
/// belongSection : "妇儿科"
/// medicineFormID : 0
/// formType : "mg"
/// isDelete : 0
/// approveNo : "国药准字H20051051"
/// weight : ""
/// productFactory : "黑龙江迪龙制药有限公司"
/// people : ""
/// medicineName : "注射用鹿瓜多肽"
/// barCode : "6937385300521"
/// normalName : "注射用鹿瓜多肽"
/// belongSickness : ""
/// productPlace : ""
/// otcClass : 0

class Data {
  String pic;
  String treatment;
  String dosage;
  String addTime;
  String medicineID;
  String addUser;
  String productBrand;
  String sickness;
  String namePy;
  String productUnit;
  int medicineClass;
  String modifyUser;
  String modifyTime;
  String medicineForm;
  int otcType;
  String productSpec;
  String belongSection;
  int medicineFormID;
  String formType;
  int isDelete;
  String approveNo;
  String weight;
  String productFactory;
  String people;
  String medicineName;
  String barCode;
  String normalName;
  String belongSickness;
  String productPlace;
  int otcClass;

  Data({
      this.treatment, 
      this.dosage, 
      this.addTime, 
      this.medicineID, 
      this.addUser, 
      this.productBrand, 
      this.sickness, 
      this.namePy, 
      this.productUnit, 
      this.medicineClass, 
      this.modifyUser, 
      this.modifyTime, 
      this.medicineForm, 
      this.otcType, 
      this.productSpec, 
      this.belongSection, 
      this.medicineFormID, 
      this.formType, 
      this.isDelete, 
      this.approveNo, 
      this.weight, 
      this.productFactory, 
      this.people, 
      this.medicineName, 
      this.barCode, 
      this.normalName, 
      this.belongSickness, 
      this.productPlace, 
      this.otcClass});

  Data.fromJson(dynamic json) {
    treatment = json["treatment"];
    dosage = json["dosage"];
    addTime = json["addTime"];
    medicineID = json["medicineID"];
    addUser = json["addUser"];
    productBrand = json["productBrand"];
    sickness = json["sickness"];
    namePy = json["namePy"];
    productUnit = json["productUnit"];
    medicineClass = json["medicineClass"];
    modifyUser = json["modifyUser"];
    modifyTime = json["modifyTime"];
    medicineForm = json["medicineForm"];
    otcType = json["otcType"];
    productSpec = json["productSpec"];
    belongSection = json["belongSection"];
    medicineFormID = json["medicineFormID"];
    formType = json["formType"];
    isDelete = json["isDelete"];
    approveNo = json["approveNo"];
    weight = json["weight"];
    productFactory = json["productFactory"];
    people = json["people"];
    medicineName = json["medicineName"];
    barCode = json["barCode"];
    normalName = json["normalName"];
    belongSickness = json["belongSickness"];
    productPlace = json["productPlace"];
    otcClass = json["otcClass"];
  }

  Map<String, dynamic> toJson() {
    var map = <String, dynamic>{};
    map["treatment"] = treatment;
    map["dosage"] = dosage;
    map["addTime"] = addTime;
    map["medicineID"] = medicineID;
    map["addUser"] = addUser;
    map["productBrand"] = productBrand;
    map["sickness"] = sickness;
    map["namePy"] = namePy;
    map["productUnit"] = productUnit;
    map["medicineClass"] = medicineClass;
    map["modifyUser"] = modifyUser;
    map["modifyTime"] = modifyTime;
    map["medicineForm"] = medicineForm;
    map["otcType"] = otcType;
    map["productSpec"] = productSpec;
    map["belongSection"] = belongSection;
    map["medicineFormID"] = medicineFormID;
    map["formType"] = formType;
    map["isDelete"] = isDelete;
    map["approveNo"] = approveNo;
    map["weight"] = weight;
    map["productFactory"] = productFactory;
    map["people"] = people;
    map["medicineName"] = medicineName;
    map["barCode"] = barCode;
    map["normalName"] = normalName;
    map["belongSickness"] = belongSickness;
    map["productPlace"] = productPlace;
    map["otcClass"] = otcClass;
    return map;
  }

}